<template>
  <div class="commback">
    <button @click="back">
      <van-icon name="revoke" size="20" />
      返回</button>
  </div>
</template>

<script>
export default {
  name:'CommBack',
  methods:{
    back(){
      this.$router.back()
    },
  },
}
</script>

<style lang="less" scoped>
.commback{
  position: fixed;
  top:10px;
  right: 10px;
  z-index: 3;
}
  button{
    height: 0.7rem;
    color: #fff;
    font-size: 16px;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.164);
    border-radius: 30px;
    padding: 8px;
  }
</style>